package com.nuedu.corejava.ch7.homework2;

public class EnglishStudent extends Student {
	
private double lecture;

	public EnglishStudent() {
		super();
	}

	public EnglishStudent(int studentId, String name, String sex, int age, double lecture,double midtermGrade, double finalExame) {
		super(studentId, name, sex, age, midtermGrade, finalExame);
		this.lecture=lecture;
	}

	public double getLecture() {
		return lecture;
	}

	public void setLecture(double lecture) {
		this.lecture = lecture;
	}
	//获取综合成绩

	@Override
	public double gradeAssessing() {
			double grade = lecture*0.5+getMidtermGrade()*0.25+getFinalExame()*0.25;
			return grade;
	}
	
	
}
